package com.rongke.model;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rongke.utils.DateJsonDeserializer;
import com.rongke.utils.DateJsonSerializer;
import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * @GoodsRecommend
 * @商品推荐(goods_recommend)
 * @version : Ver 1.0
 */
@TableName("goods_recommend")
public class GoodsRecommend implements Serializable {
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/**
	 * @备注:推荐表id
	 * @字段:id BIGINT(19)
	 */
	@TableId(type = IdType.AUTO)
	private Long id;


	/**
	 * @备注:推荐商品id
	 * @字段:goods_id BIGINT(19)
	 */
	private Long goodsId;
	/**
	 * 备注:推荐商品id
	 */
	@TableField(exist = false)
	private Goods goods;


	/**
	 * @备注:推荐的商品(可能有多条对应同一goods_id)
	 * @字段:rec_goods_id BIGINT(19)
	 */
	private Long recGoodsId;
	/**
	 * 备注:推荐的商品(可能有多条对应同一goods_id)
	 */
	@TableField(exist = false)
	private Goods recGoods;


	/**
	 * @备注:创建时间
	 * @字段:gmt_datetime DATETIME(19)
	 */
	@JsonSerialize(using=DateJsonSerializer.class)
	@JsonDeserialize(using=DateJsonDeserializer.class)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
	private java.util.Date gmtDatetime;


	/**
	 * @备注:更新时间
	 * @字段:upt_datetime DATETIME(19)
	 */
	@JsonSerialize(using=DateJsonSerializer.class)
	@JsonDeserialize(using=DateJsonDeserializer.class)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
	private java.util.Date uptDatetime ;


	public GoodsRecommend(){
	}

	public GoodsRecommend(
		Long id
	){
		this.id = id;
	}



	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return this.id;
	}

	public void setGoodsId(Long goodsId) {
			this.goodsId = goodsId;
			}

	public Long getGoodsId() {
			return this.goodsId;
	}
	public void setGoods(Goods goods) {
		this.goods = goods;
	}

	public Goods getGoods() {
		return this.goods;
	}

	public void setRecGoodsId(Long recGoodsId) {
			this.recGoodsId = recGoodsId;
			}

	public Long getRecGoodsId() {
			return this.recGoodsId;
	}
	public void setRecGoods(Goods recGoods) {
		this.recGoods = recGoods;
	}

	public Goods getRecGoods() {
		return this.recGoods;
	}


	public void setGmtDatetime(java.util.Date gmtDatetime) {
		this.gmtDatetime = gmtDatetime;
	}

	public java.util.Date getGmtDatetime() {
		return this.gmtDatetime;
	}


	public void setUptDatetime(java.util.Date uptDatetime) {
		this.uptDatetime = uptDatetime;
	}

	public java.util.Date getUptDatetime() {
		return this.uptDatetime;
	}
}
